package com.thd.springboot.framework.db.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;


import java.io.Serializable;
import java.util.Date;

/**
 * com.thd.springboot.framework.db.entity.BaseEntity
 *
 * @author: wanglei62
 * @DATE: 2020/1/21 17:51
 **/
@JsonInclude(JsonInclude.Include.NON_NULL)
 public class BasicEntity extends MyPage implements Serializable {

    private static final long serialVersionUID = 1L;



    /**
     * 是否已删除
     */
    @ApiModelProperty("是否已删除")
    @JsonIgnore
    @TableField("is_deleted")
    private Integer isDeleted = 0;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private Date createTime;

    /**
     * 修改时间
     */
    @ApiModelProperty("修改时间")
    @TableField("modify_time")
    private Date modifyTime;

    /**
     * 创建人
     */
    @ApiModelProperty("创建人")
    @TableField("create_by")
    private String createBy;

    /**
     * 修改人
     */
    @ApiModelProperty("修改人")
    @TableField("modify_by")
    private String modifyBy;



   public Integer getIsDeleted() {
      return isDeleted;
   }

   public void setIsDeleted(Integer isDeleted) {
      this.isDeleted = isDeleted;
   }

   public Date getCreateTime() {
      return createTime;
   }

   public void setCreateTime(Date createTime) {
      this.createTime = createTime;
   }

   public Date getModifyTime() {
      return modifyTime;
   }

   public void setModifyTime(Date modifyTime) {
      this.modifyTime = modifyTime;
   }

   public String getCreateBy() {
      return createBy;
   }

   public void setCreateBy(String createBy) {
      this.createBy = createBy;
   }

   public String getModifyBy() {
      return modifyBy;
   }

   public void setModifyBy(String modifyBy) {
      this.modifyBy = modifyBy;
   }


}
